<%- include('../public/page_header.html')%>

<div class="panel panel-default">
    <div class="panel-heading">
        修改轮播图
    </div>
    <div class="panel-body">
        <div class="table-responsive input-form">
            <form action="/<%=adminPath%>/focus/doEdit" method="post" id="form" enctype="multipart/form-data">
              <input type="hidden" name="id" value="<%=list._id%>">
              <input type="hidden" name="origin_img" value="<%=list.focus_img%>">
                <ul>
                    <li><span>分类：</span>
                      <select name="type" id="type">
                        <option value="1" <% if(list.type==1){%> selected <%}%> >网站</option>
                        <option value="2" <% if(list.type==2){%> selected <%}%> >APP</option>
                        <option value="3" <% if(list.type==3){%> selected <%}%> >小程序</option>
                      </select>
                    </li>
                    <li><span>名称：</span><input type="text" name="title" value="<%=list.title%>"></li>
                    <li><span>跳转地址：</span><input type="text" name="link" value="<%=list.link%>"></li>
                    <li><span>轮播图：</span>
                      <input type="file" name="focus_img">
                      <br><br><span></span>
                      <img src="\<%=list.focus_img%>" width="80px" alt="">
                    </li>
                    <li><span>排序：</span><input type="text" name="sort" value="<%=list.sort%>"></li>
                    <li><span>状态：</span>
                      <input type="radio" name="status" 
                        <% if(list.status ==1){ %> checked <%}%> value="1" id="a">
                      <label for="a">显示</label>
                      <input type="radio" name="status"
                        <% if(list.status ==0){ %> checked <%}%> value="0" id="b">
                      <label for="b">隐藏</label>
                      <br>
                    </li>
                    <li>
                      <button type="submit" class="btn btn-primarv"  id="submitBtn">提交</button>
                    </li>
                  </ul>
            </form>
        </div>
    </div>
</div>
</body>
</html>